package com.example.repository;

import com.example.index.Customer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * com.example.repository.CustomerRepository
 *
 * @author ZRS
 * @version V1.0
 * @since 2025/11/1 17:45
 */
public interface CustomerRepository extends ElasticsearchRepository<Customer, Long> {

    Page<Customer> findByAddress(String address, Pageable pageable);

}
